package br.com.r1.caelum.test;

import javax.persistence.EntityManager;

import br.com.r1.caelum.factory.DatabaseFactory;

public class ConnectionFactoryTester {

	public static void main(String[] args) {
		EntityManager em = DatabaseFactory.getEntityManager();
		em.getTransaction().begin();
		em.getTransaction().commit();
		em.close();
	}
}
